package patrol.mobile.com.mobilepatrol.activity.security.emergency;

import android.content.DialogInterface;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.OnClick;
import patrol.mobile.com.mobilepatrol.R;
import patrol.mobile.com.mobilepatrol.activity.BaseActivity;
import patrol.mobile.com.mobilepatrol.activity.security.ConsTitles;
import patrol.mobile.com.mobilepatrol.utils.CommonUtil;
import patrol.mobile.com.mobilepatrol.utils.DialogUtil;
import patrol.mobile.com.mobilepatrol.utils.ToastUtils;

/**
 * Created by fuzhen.li on 2018/9/18.
 */
public class EmergencySaveCheckReview1Activity extends BaseActivity {

    @BindView(R.id.tv_back)
    TextView tvSave;
    @BindView(R.id.tv_review)
    TextView tvReview;

    @Override
    protected int attachLayoutRes() {
        return R.layout.activity_emergency_check_review1;
    }

    @Override
    public void setListener() {
        List<String> list = new ArrayList<>();
        for (int i = 0; i < 5; i++) {
            list.add("123");
        }
    }

    @Override
    public void initTitle() {
        iv_back.setImageResource(R.mipmap.up_white);
        iv_back.setVisibility(View.VISIBLE);
        iv_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                CommonUtil.exitActivityAndBackAnim(EmergencySaveCheckReview1Activity.this, true);
            }
        });
        tv_center_title.setVisibility(View.VISIBLE);
        tv_center_title.setText(ConsTitles.EMERGENCY_SAVE_CHECK_REVIEW_1);
    }

    @OnClick({R.id.tv_back,R.id.tv_review})
    public void onSaveClick(View v){

        switch(v.getId()){

            case R.id.tv_back:
               finish();
                break;
            case R.id.tv_review:
                ToastUtils.showToast("复核");
                break;
        }

    }


}
